|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfurny.ga.tuples.Couple<A,B>
A
- Type of valueA.B
- Type of valueB.public class Couple<A,B>
An immutable couple of two values.
Field Summary | |
---|---|
private A |
valueA
|
private B |
valueB
|
Constructor Summary | |
---|---|
Couple(A valueA,
B valueB)
Creates a new couple. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
A |
getValueA()
Getter for valueA. |
B |
getValueB()
Getter for valueB. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final A valueA
private final B valueB
Constructor Detail |
---|
public Couple(A valueA, B valueB)
valueA
- The value a.valueB
- The value b.Method Detail |
---|
public A getValueA()
public B getValueB()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |